package br.com.projetoejc.controller;

import java.util.List;

import br.com.projetoejc.dao.TipoEmailDAO;
import br.com.projetoejc.model.TipoEmail;

public class TipoEmailController {
	
	private TipoEmailDAO tipoEmailDAO;

	public TipoEmailController() {
		this.tipoEmailDAO = new TipoEmailDAO();
	
	}
	
	public List<TipoEmail> listarTodos() {
		return this.tipoEmailDAO.listarTodos();
	}
	
	public TipoEmail buscarId(long pk) {
		return this.tipoEmailDAO.buscarId(pk);
	}
	
	public void inserir(TipoEmail tipoEmail) {
		this.tipoEmailDAO.inserir(tipoEmail);
	}
	
	public void alterar(TipoEmail tipoEmail) {
		this.tipoEmailDAO.alterar(tipoEmail);
	}
	
	public void remover(TipoEmail tipoEmail) {
		this.tipoEmailDAO.remover(tipoEmail);
	}	

}
